package com.vader.admin.entity.DO;

import cn.hutool.core.bean.BeanUtil;
import com.vader.admin.entity.Query.BaseGroupInfoQuery;

import java.util.Date;
import java.io.Serializable;

/**
 * 组织详情表(BaseGroupInfo)实体类
 *
 * @author Vader
 * @since 2021-10-06 12:46:38
 */
public class BaseGroupInfo implements Serializable {
    private static final long serialVersionUID = -17508402354399840L;
    /**
     * 雪花主键
     */
    private Long id;
    /**
     * 组织名称
     */
    private String groupName;
    /**
     * 组织类型
     */
    private Integer groupType;
    /**
     * 0:2C 1:2B
     */
    private Integer toType;
    /**
     * 图标
     */
    private String avatar;
    /**
     * 组织简介
     */
    private String detail;
    /**
     * 创建人id
     */
    private Long orginId;
    /**
     * 创建人昵称
     */
    private String orginName;
    /**
     * 状态：0-未绑定，1-已绑定，2-停用，3-启用
     */
    private Integer groupStatus;
    /**
     * （0：正常使用、1：已删除）
     */
    private Integer isDeleted;

    private Date createTime;

    private Date updateTime;

    public static BaseGroupInfo from(BaseGroupInfoQuery baseGroupInfoQuery) {
        BaseGroupInfo baseGroupInfo = new BaseGroupInfo();
        BeanUtil.copyProperties(baseGroupInfoQuery,baseGroupInfo);
        return baseGroupInfo;
    }


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getGroupName() {
        return groupName;
    }

    public void setGroupName(String groupName) {
        this.groupName = groupName;
    }

    public Integer getGroupType() {
        return groupType;
    }

    public void setGroupType(Integer groupType) {
        this.groupType = groupType;
    }

    public Integer getToType() {
        return toType;
    }

    public void setToType(Integer toType) {
        this.toType = toType;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public String getDetail() {
        return detail;
    }

    public void setDetail(String detail) {
        this.detail = detail;
    }

    public Long getOrginId() {
        return orginId;
    }

    public void setOrginId(Long orginId) {
        this.orginId = orginId;
    }

    public String getOrginName() {
        return orginName;
    }

    public void setOrginName(String orginName) {
        this.orginName = orginName;
    }

    public Integer getGroupStatus() {
        return groupStatus;
    }

    public void setGroupStatus(Integer groupStatus) {
        this.groupStatus = groupStatus;
    }

    public Integer getIsDeleted() {
        return isDeleted;
    }

    public void setIsDeleted(Integer isDeleted) {
        this.isDeleted = isDeleted;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

}

